﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Dictionary1 : MonoBehaviour
{
    Dictionary<string, string> dic1 = new Dictionary<string, string>();
    // Start is called before the first frame update
    void Start()
    {
        dic1.Add("1", "100");
        dic1.Add("2", "200");
        if (dic1.ContainsKey("1"))
        {

        }
        dic1["1"] = "300";
        foreach (KeyValuePair<string,string> kvp in dic1)
        {
            Debug.Log(kvp.Key + ":" + kvp.Value);
        }
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
